<?php
require_once 'Zend/Db/Table/Abstract.php';

class Model_DbTable_Employees extends Zend_Db_Table_Abstract
{
	protected $_name='employees';
	
	public function getEmployees($id)
	{
		$id=(int)$id;
		$row=$this->fetchRow('id = '.$id);
		if(!$row)
		{
			throw new Exception('no se puede encontra el registro'.$id);
		}
		return $row->toArray();
	}
}